import { configureStore } from '@reduxjs/toolkit';

import displaySlice from './slice/displaySlice';
import { appSlice } from '@/stores/slice/appSlice';
import { paywallSlice } from '@/stores/slice/paywallSlice';
import { userSlice } from '@/stores/slice/userSlice';
import changeLanguageSlice from './slice/changeLanguageSlice';

export type RootState = ReturnType<typeof store.getState>;

const store = configureStore({
  reducer: {
    app: appSlice.reducer,
    user: userSlice.reducer,
    paywall: paywallSlice.reducer,
    display: displaySlice,
    changeLanguage: changeLanguageSlice,
  },
});
export default store;
